<!-- 数据处理模块 -->
<div style="display:none;">
	<div class="c-p-process-module" module="html">
		<section>
			<ul class="nav nav-tabs">
	            <li class="active"><a href="#p_m_html_allow" data-toggle="tab">保留标签</a></li>
	            <li><a href="#p_m_html_filter" data-toggle="tab">过滤标签</a></li>
			</ul>
			<div class="tab-content" style="padding-top:10px;">
                <div class="tab-pane fade in active" id="p_m_html_allow">
					<div class="form-group">
						<input type="text" data-process="html:html_allow" class="form-control" value="p,br,img" />
						<div class="p-m-html-tags" module-html="html_allow">
							<a href="javascript:;"><span>img</span>图片</a>
							<a href="javascript:;"><span>a</span>超链接</a>
							<a href="javascript:;"><span>p</span>段落</a>
							<a href="javascript:;"><span>br</span>换行</a>
						</div>
					</div>
                </div>
                <div class="tab-pane fade" id="p_m_html_filter">
                    <div class="form-group">
						<input type="text" data-process="html:html_filter" class="form-control" value="" />
						<div class="p-m-html-tags" module-html="html_filter">
							<a href="javascript:;"><span>all</span>全部标签</a>
							<a href="javascript:;"><span>a</span>超链接</a>
							<a href="javascript:;"><span>img</span>图片</a>
							<a href="javascript:;"><span>div</span>层</a>
							<a href="javascript:;"><span>p</span>段落</a>
							<a href="javascript:;"><span>br</span>换行</a>
							<a href="javascript:;"><span>form</span>表单</a>
							<a href="javascript:;"><span>iframe</span>框架</a>
							<a href="javascript:;"><span>object</span>对象</a>
							<a href="javascript:;"><span>script</span>脚本</a>
							<a href="javascript:;"><span>style</span>样式</a>
							<a href="javascript:;"><span>link</span>外部样式</a>
						</div>
					</div>
                </div>
            </div>
	   		<p>其它标签可直接输入，用空格或逗号分隔</p>
	   	</section>
	</div>
	<div class="c-p-process-module" module="replace">
		<div class="input-group">
			<textarea data-process="replace:replace_from" rows="3" class="form-control"></textarea>
			<div class="input-group-addon iga-rt">
		      	<a href="javascript:;" title="{$Think.lang.tips_sign_wildcard}" class="blk sign-wildcard">{$Think.lang.sign_wildcard}</a>
				<span title="{$Think.lang.tips_regular}" class="blk">正则</span>
			</div>
		</div>
		<p style="margin:5px 0;">替换成</p>
		<div class="form-group">
			<textarea data-process="replace:replace_to" rows="3" class="form-control"></textarea>
		</div>
	</div>
	<div class="c-p-process-module" module="filter">
		<div class="form-group">
			<label>一行一个过滤词</label>
			<textarea data-process="filter:filter_list" rows="3" class="form-control"></textarea>
		</div>
		<div class="form-group">
			<label>过滤词替换成</label>
			<input type="text" data-process="filter:filter_replace" class="form-control" value="" />
		</div>
		<div class="checkbox"><label><input type="checkbox" data-process="filter:filter_pass" value="1" /> 检测到过滤词将该字段值设为空</label></div>
	</div>
	<div class="c-p-process-module" module="translate">
		<div class="form-group">
			<div class="input-group">
				<select data-process="translate:translate_from" class="form-control">
					<option value="">--源语言--</option>
					<option value="zh">中文</option>
					<option value="en">英语</option>
					<option value="fra">法语</option>
					<option value="jp">日语</option>
					<option value="kor">韩语</option>
					<option value="de">德语</option>
					<option value="ru">俄语</option>
					<option value="spa">西班牙语</option>
					<option value="pt">葡萄牙语</option>
					<option value="it">意大利语</option>
					<option value="ara">阿拉伯语</option>
					<option value="cht">繁体中文</option>
				</select>
				<span class="input-group-addon">翻译为</span>
				<select data-process="translate:translate_to" class="form-control">
					<option value="">--目标语言--</option>
					<option value="zh">中文</option>
					<option value="en">英语</option>
					<option value="fra">法语</option>
					<option value="jp">日语</option>
					<option value="kor">韩语</option>
					<option value="de">德语</option>
					<option value="ru">俄语</option>
					<option value="spa">西班牙语</option>
					<option value="pt">葡萄牙语</option>
					<option value="it">意大利语</option>
					<option value="ara">阿拉伯语</option>
					<option value="cht">繁体中文</option>
				</select>
			</div>
		</div>
		<p class="help-block">不支持自动识别，必须指定源语言和目标语言</p>
	</div>
	<div class="c-p-process-module" module="tool">
		<div class="checkbox">
			<label><input type="checkbox" data-process="tool:tool_list" value="trim" />去除前后空格</label>
			&nbsp; <label><input type="checkbox" data-process="tool:tool_list" value="format" />清除文本格式（去除html元素的style、width、height等）</label>
			&nbsp; <label><input type="checkbox" data-process="tool:tool_list" value="is_img" />内容是图片链接</label>
		</div>
	</div>
	<div class="c-p-process-module" module="batch">
		<div class="form-group">
			<label>批量替换</label>
			<textarea data-process="batch:batch_list" rows="3" class="form-control"></textarea>
			<p class="help-block">一行一对替换词，用“=”分隔，例如：aa=bb，即将“aa”替换成“bb”</p>
		</div>
	</div>
	<div class="c-p-process-module" module="substr">
		<div class="form-group">
			<label>截取长度</label>
			<input type="number" data-process="substr:substr_len" class="form-control" />
		</div>
		<div class="form-group">
			<label>结尾字符</label>
			<input type="text" data-process="substr:substr_end" class="form-control" />
		</div>
	</div>
	<div class="c-p-process-module" module="func">
		<div class="form-group">
			<label>PHP函数名</label>
			<select data-process="func:func_name"  class="form-control">
				<option value="">--请选择--</option>
				{foreach $Think.config.allow_process_func as $k=>$v}
				<option value="{$k}">{$v}</option>
				{/foreach}
				{if is_array($Think.config.EXTEND_PROCESS_FUNC)}
				{foreach $Think.config.EXTEND_PROCESS_FUNC as $k=>$v}
				<option value="{$k}">{$v}</option>
				{/foreach}
				{/if}
			</select>
		</div>
		<div class="form-group">
			<label>传入参数</label>
			<textarea data-process="func:func_param" rows="2" class="form-control" placeholder="默认###传入当前字段的值"></textarea>
			<p class="help-block">
				一行一个值，使用###表示当前字段的值，请按函数传参，否则运行出错！<a href="javascript:;" onclick="$(this).siblings('span').show();">扩展函数</a>
				<span style="display:none;">
					<br>
					出于安全考虑，如需扩展函数，请在根目录/data/config.php中添加配置
					'EXTEND_PROCESS_FUNC'=>array('PHP函数名'=>'描述')
				</span>
			</p>
		</div>
	</div>
</div>